package com.ktjiaoyu.news.utils;

import com.ktjiaoyu.news.dao.impl.NewsDaoImpl;
import com.ktjiaoyu.news.entity.News;

import java.util.List;

public class apps {
    public static void main(String[] args) {
        NewsDaoImpl dao = new NewsDaoImpl();
        List<News> page = dao.getPage(null, 1, 5);
        for (News news : page) {
            System.out.println(news);
        }
    }
}
